home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4925 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: newsfeed.internetmci.com!panix!usenet
  2. From: gg@panix.com (Louis Bianchi)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Don't Read This
  5. Date: Sat, 10 Feb 1996 14:16:07 GMT
  6. Organization: PANIX Public Access Internet and Unix, NYC
  7. Message-ID: <4fi9e1$1lj@news1.panix.com>
  8. References: <4fgu5n$75u@cronkite.ocis.temple.edu>
  9. NNTP-Posting-Host: gg.dialup.access.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. akim@thunder.ocis.temple.edu (Andrew Kim) wrote:
  13.  
  14. >Please help.
  15. >I thought I could get your attention to help me here.
  16. >I am trying to do the following:
  17.  
  18. >1.  Write a main program that will use following functions:
  19. >    a)  int get_int ()
  20. >    b)  int get_int_in_range ()
  21. >    c)  float get_float ()
  22. >    d)  float get_float_in_range ()
  23.  
  24. >2.  Above program will used the above listed functions to get necessary 
  25. >information to compute miles per gallon your car will be driven.  Int 
  26. >will be used for your mileage data and float will be used for gas used.
  27.  
  28. >3.  It is obvious the get_int and get_float will not be used over and 
  29. >over again, but get_int_in_range and get_float_in_range will be used more 
  30. >than once.  The program is to use negative number as a sentinel value and 
  31. >range is used to accept numbers so you will not be buying more gas than 
  32. >your car can fill-up with.  Furthermore, your car will not drive 200 
  33. >miles per gallon, and your program is to accept a reasonable numbers only.
  34.  
  35. >Anyone programing this will receive a kudo from me, yours truly,
  36.  
  37.  
  38. >Andrew.
  39.  
  40.  
  41. >  
  42. How about you go and do your own homework and show a little bit of
  43. character.  Also why not post just once rather than annoy us with one
  44. posting and two pointer postings.
  45.  
  46. Be seeing you,
  47. gg
  48.  
  49.  
  50.               ***************************************************
  51.               *       Louis Bianchi  gg@panix.com               *
  52.               *          http://www.panix.com/~gg/              *
  53.               ***************************************************
  54.  
  55.